import 'package:flutter_mes_app/common/routers/observers.dart';
import 'package:flutter_mes_app/pages/system/main/binding.dart';
import 'package:get/get.dart';
import '../../pages/index.dart';
import '../index.dart';

class RoutePages {
// 历史记录
  static List<String> history = [];

  // 观察者
  static RouteObservers observer = RouteObservers();

  // 列表
  static List<GetPage> list = [
    GetPage(
      name: RouteNames.systemMain,
      page: () => const MainPage(),
      binding: MainBinding(),
    ),
    GetPage(
      name: RouteNames.myLanguage,
      page: () => const LanguagePage(),
    ),
    GetPage(
      name: RouteNames.myMyIndex,
      page: () => const MyIndexPage(),
    ),
    GetPage(
      name: RouteNames.myTheme,
      page: () => const ThemePage(),
    ),
    GetPage(
      name: RouteNames.stylesAppbar,
      page: () => const AppbarPage(),
    ),
    GetPage(
      name: RouteNames.stylesAvatar,
      page: () => const AvatarPage(),
    ),
    GetPage(
      name: RouteNames.stylesBottomSheet,
      page: () => const BottomSheetPage(),
    ),
    GetPage(
      name: RouteNames.stylesButton,
      page: () => const ButtonPage(),
    ),
    GetPage(
      name: RouteNames.stylesCard,
      page: () => const CardPage(),
    ),
    GetPage(
      name: RouteNames.stylesCheckbox,
      page: () => const CheckboxPage(),
    ),
    GetPage(
      name: RouteNames.stylesColors,
      page: () => const ColorsPage(),
    ),
    GetPage(
      name: RouteNames.stylesDialog,
      page: () => const DialogPage(),
    ),
    GetPage(
      name: RouteNames.stylesForm,
      page: () => const FormPage(),
    ),
    GetPage(
      name: RouteNames.stylesIcon,
      page: () => const IconPage(),
    ),
    GetPage(
      name: RouteNames.stylesImage,
      page: () => const ImagePage(),
    ),
    GetPage(
      name: RouteNames.stylesInput,
      page: () => const InputPage(),
    ),
    GetPage(
      name: RouteNames.stylesLoading,
      page: () => const LoadingPage(),
    ),
    GetPage(
      name: RouteNames.stylesListTile,
      page: () => const ListTilePage(),
    ),
    GetPage(
      name: RouteNames.stylesPopover,
      page: () => const PopoverPage(),
    ),
    GetPage(
      name: RouteNames.stylesRadioGroup,
      page: () => const RadioGroupPage(),
    ),
    GetPage(
      name: RouteNames.stylesStylesIndex,
      page: () => const StylesIndexPage(),
    ),
    GetPage(
      name: RouteNames.stylesText,
      page: () => const TextPage(),
    ),
    GetPage(
      name: RouteNames.stylesTag,
      page: () => const TagPage(),
    ),
    GetPage(
      name: RouteNames.systemDesktop,
      page: () => const DesktopPage(),
    ),
    GetPage(
      name: RouteNames.systemLogin,
      page: () => const LoginPage(),
    ),
    GetPage(
      name: RouteNames.stylesPicker,
      page: () => const PickerPage(),
    ),
    GetPage(
      name: RouteNames.stylesStepper,
      page: () => const StepperPage(),
    ),
    GetPage(
      name: RouteNames.systemSplash,
      page: () => const SplashPage(),
    ),
    GetPage(
      name: RouteNames.woreportworkWoreportworkIndex,
      page: () => const WoreportworkIndexPage(),
    ),
    GetPage(
      name: RouteNames.workorderWorkorderIndex,
      page: () => const WorkorderIndexPage(),
    ),
  ];
}
